package com.ruoyi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 能源产业结构
 * @TableName ny4
 */
@TableName(value ="ny4")
@Data
public class Ny4 implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 能源类型
     */
    private String ny;

    /**
     * 产业规模（产值/亿）
     */
    private Long cygm;

    /**
     * 产业链条（勘探开采\加工制造\销售服务）
     */
    private String cylt;

    /**
     * 产业分布
     */
    private String cyfb4;

    /**
     * 产业发展趋势
     */
    private Long cyfzqs;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ny4 other = (Ny4) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getNy() == null ? other.getNy() == null : this.getNy().equals(other.getNy()))
            && (this.getCygm() == null ? other.getCygm() == null : this.getCygm().equals(other.getCygm()))
            && (this.getCylt() == null ? other.getCylt() == null : this.getCylt().equals(other.getCylt()))
            && (this.getCyfb4() == null ? other.getCyfb4() == null : this.getCyfb4().equals(other.getCyfb4()))
            && (this.getCyfzqs() == null ? other.getCyfzqs() == null : this.getCyfzqs().equals(other.getCyfzqs()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNy() == null) ? 0 : getNy().hashCode());
        result = prime * result + ((getCygm() == null) ? 0 : getCygm().hashCode());
        result = prime * result + ((getCylt() == null) ? 0 : getCylt().hashCode());
        result = prime * result + ((getCyfb4() == null) ? 0 : getCyfb4().hashCode());
        result = prime * result + ((getCyfzqs() == null) ? 0 : getCyfzqs().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ny=").append(ny);
        sb.append(", cygm=").append(cygm);
        sb.append(", cylt=").append(cylt);
        sb.append(", cyfb4=").append(cyfb4);
        sb.append(", cyfzqs=").append(cyfzqs);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}